/*
*************************************
* PocketGTT
*************************************
This file is part of PocketGTT.

PocketGTT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

PocketGTT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PocketGTT.  If not, see <http://www.gnu.org/licenses/>.
*/

import QtQuick 1.0

Rectangle {
    //    width: 360
    //    height: 360

    // set size to screen
    anchors.fill: parent
    //    anchors.centerIn: parent
    id: aboutview
    state: "active"

    color: myWin.theme.aboutview_background

    Column{
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        width: parent.width
        spacing: 10

        Image {
            id: titleImg
//            fillMode: Image.PreserveAspectFit
//            smooth: true
            width: parent.width * 0.8
            //                 anchors.top: parent.top
            //                 anchors.topMargin: 15
            anchors.horizontalCenter: parent.horizontalCenter
            source: "./logo/AboutLogo.png"
        }

        Separator {
            //            id: sep1
            //            anchors.top: searchBar.bottom
            anchors.horizontalCenter: parent.horizontalCenter
            width: parent.width * 0.6
        }

        Text {
            text: qsTr("Tocca lo schermo per proseguire...")
            anchors.horizontalCenter: parent.horizontalCenter
            //            anchors.top: txtAvv.bottom
            //            anchors.topMargin: 10
            width: parent.width * 0.8
            color: "white"
            //        font.bold: true
            horizontalAlignment: Text.AlignHCenter

            font.pixelSize: myWin.theme.textSizeM   //26
            wrapMode: Text.Wrap

        }
        Separator {
            //            id: sep1
            //            anchors.top: searchBar.bottom
            anchors.horizontalCenter: parent.horizontalCenter
            width: parent.width * 0.6
        }

        Text {
            id: txtAvv
            text: qsTr("Avvertenze")
            anchors.horizontalCenter: parent.horizontalCenter
            //                 anchors.top: titleImg.bottom
            //                 anchors.topMargin: 10
            //                 width: parent.width * 0.8
            color: "#fcf01a"
            font.bold: true
            //                 horizontalAlignment: Text.AlignHCenter

            font.pixelSize: myWin.theme.textSizeM   //26
            //                 wrapMode: Text.Wrap


        }
        Text {
            text: qsTr("PocketGTT viene distribuito senza garanzia e non è stato sviluppato in collaborazione con la GTT. PocketGTT riproduce in una nuova veste grafica informazioni scaricate dal sito GTT. Qualsiasi modifica apportata dalla GTT al proprio sito potrebbe rendere questo programma inutilizzabile.")
            anchors.horizontalCenter: parent.horizontalCenter
            //            anchors.top: txtAvv.bottom
            //            anchors.topMargin: 10
            width: parent.width * 0.8
            color: "white"
            //        font.bold: true
            //            horizontalAlignment: Text.AlignLeft

            font.pixelSize: myWin.theme.textSizeS   //26
            wrapMode: Text.Wrap

        }




    }

    MouseArea {
        anchors.fill: parent
        onClicked: {
            //myWin.statesMan.aboutview_active = !myWin.statesMan.aboutview_active
            myWin.statesMan.aboutview_active = false
        }
    }
}
